import request from '@/utils/request'

// 查询领养申请列表
export function listAdoption(query) {
  return request({
    url: '/adopt/list',
    method: 'get',
    params: query
  })
}

// 查询领养申请详细
export function getAdoption(adoptionId) {
  return request({
    url: '/adopt/get/' + adoptionId,
    method: 'get'
  })
}

// 删除领养申请
export function delAdoption(adoptionId) {
  return request({
    url: '/adopt/del/' + adoptionId,
    method: 'post'
  })
}

export function approveAdoption(data) {
  return request({
    url: '/adopt/approve',
    method: 'post',
    data: data
  })
}
